#include "globalFunc.h"
#include <WndBase.h>
#include <Wndbutton.h>
#include <WndLoadPicture.h>
#include <WndStatic.h>
#include <WndEdit.h>
std::string GetWndName( const CWndBase* pWnd )
{
	const CWndButton*			pBtn =		dynamic_cast < const CWndButton* >(pWnd);
	const CWndLoadPicture*	pPicture =	dynamic_cast < const CWndLoadPicture* >(pWnd);
	const CWndEdit*			pEdit =		dynamic_cast < const CWndEdit* >(pWnd);
	const CWndStatic*			pStatic =	dynamic_cast < const CWndStatic* >(pWnd);
	const CWndBase*			pBaseWnd =	dynamic_cast < const CWndBase* >(pWnd);

	std::string strName = "";
	if( pBtn )
	{
		strName = "CWndButton";
	}
	else if ( pPicture )
	{
		strName = "CWndLoadPicture";
	}
	else if ( pEdit )
	{
		strName = "CWndEdit";
	}
	else if ( pStatic )
	{
		strName = "CWndStatic";
	}
	else if ( pBaseWnd )
	{
		strName = "CWndBase";
	}
	return strName;
}